package com.smz.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.smz.entity.Customer;
import org.apache.ibatis.annotations.Param;

public interface CustomerDAO extends BaseMapper<Customer> {

    /**
     * 查询所有当前登录的公司的客户
     */
    IPage<Customer> selectCustomerBySuppName(Page<Customer> page, @Param("name") String username);
    /**
     * 模糊查询我的客户
     */
    IPage<Customer> selectCustomerLike(Page<Customer> page, @Param("name") String name, @Param("address") String address);

}
